home *** CD-ROM | disk | FTP | other *** search
/ ShareWare OnLine 2 / ShareWare OnLine Volume 2 (CMS Software)(1993).iso / database / msgobj10.zip / PIPEXT.H < prev    next >
C/C++ Source or Header  |  1993-03-10  |  1KB  |  71 lines

  1. /* PIPEXT.H contains declarations for some global variables */
  2.  
  3. #ifdef MAIN
  4.   #define EX
  5.     #ifndef __WINDOWS_H
  6.       extern unsigned _stklen=32767;
  7.     #endif
  8. #else
  9.   #define EX extern
  10. #endif
  11.  
  12. #ifndef __STDIO_H
  13.   EX int f,fcfg;
  14. #else
  15.   EX FILE *f,*fcfg;
  16. #endif
  17.  
  18. EX char fn[128],lbuff[256],rundir[64];
  19. EX long xbufsize;
  20.  
  21. #ifdef __DOS_H
  22.   EX struct time tm;
  23.   EX struct date dt;
  24. #endif
  25.  
  26. EX uint registered,lines25;
  27.  
  28. #ifdef NODEADDRDEF
  29.   EX NODEINFO cfg;
  30. #endif
  31.  
  32. #ifdef REPLYCFGDEFINED
  33.   EX REPLYCFG replycfg;
  34.   EX PERSREPLY persquote;
  35. #endif
  36.  
  37. #ifdef __CONIO_H
  38.   EX struct text_info oldmode;
  39. #endif
  40.  
  41. EX char *origins[256];
  42.  
  43. #define SET_MARK 1
  44. #define SET_DEL 2
  45. #define SET_NEW 4
  46.  
  47. #ifdef MAIN
  48.   char *mname[12]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"};
  49.   unsigned char bitmp[8]={1,2,4,8,16,32,64,128};
  50.   unsigned char bitmn[8]={254,253,251,247,239,223,191,127};
  51.   #ifdef __STDIO_H
  52.     FILE *flog=NULL;
  53.   #else
  54.     int flog=-1;
  55.   #endif
  56. #else
  57.   extern char *mname[12];
  58.   extern unsigned char bitmp[8],bitmn[8];
  59.   #ifdef __STDIO_H
  60.     extern FILE *flog;
  61.   #else
  62.     extern int flog;
  63.   #endif
  64. #endif
  65.  
  66. #define isbit(w,bitmap) (bitmap[w/8]&bitmp[w%8])
  67. #define setbit(w,bitmap) bitmap[w/8]|=bitmp[w%8]
  68. #define resetbit(w,bitmap) bitmap[w/8]&=bitmn[w%8]
  69.  
  70. #define PIPVARS
  71.